<template>
  <view class="icon_box" v-if="item.isShow">
    <view><image :src="item.icon" /></view>
    <view class="icon_text">{{ item.name }}</view>
  </view>
</template>

<script>
export default {
  props: {
    item: {
      type: Object,
      default: () => {
        return {}
      },
    },
  },
  data() {
    return {}
  },
  created() {
    console.log('item=' + this.item.isShow)
  },
  methods: {},
}
</script>

<style scoped lang="scss">
.icon_box {
  width: 100rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  image {
    width: 90rpx;
    height: 90rpx;
  }
  .icon_text {
    margin-top: 20rpx;
    color: #333333;
    font-size: 23rpx;
  }
}
</style>
